hasWindows: false,
isLocked: false,
isGreeter: false,
+ isPrimary: false,
unlockDialog: null,
components: [],
panel: {
'gdm': {
allowKeybindingsWhenModal: true,
isGreeter: true,
+ isPrimary: true,
unlockDialog: imports.gdm.loginDialog.LoginDialog,
components: ['polkitAgent'],
panel: {
},
'initial-setup': {
+ isPrimary: true,
components: ['keyring'],
panel: {
left: [],
hasWindows: true,
unlockDialog: imports.ui.unlockDialog.UnlockDialog,
isLocked: false,
+ isPrimary: true,
components: ['networkAgent', 'polkitAgent', 'telepathyClient',
'keyring', 'recorder', 'autorunManager', 'automountManager'],
panel: {
function listModes() {
let modes = Object.getOwnPropertyNames(_modes);
for (let i = 0; i < modes.length; i++)
- print(modes[i]);
+ if (_modes[modes[i]].isPrimary)
+ print(modes[i]);
}
const SessionMode = new Lang.Class({
_init: function() {
global.connect('notify::session-mode', Lang.bind(this, this._sync));
- this._modeStack = [global.session_mode];
+ let mode = _modes[global.session_mode].isPrimary ? global.session_mode
+ : 'user';
+ this._modeStack = [mode];
this._sync();
},